//
//  HealthCollectionViewCell.m
//  SpiritWalk
//
//  Created by dllo on 16/3/14.
//  Copyright © 2016年 王鑫. All rights reserved.
//

#import "HealthCollectionViewCell.h"

@implementation HealthCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    
    self=[super initWithFrame:frame];
    if (self) {
        
        [self setUpView];
    }
    return self;
}

-(void)setUpView{
    
    self.titleLabel=[[UILabel alloc] init];
    self.titleLabel.textAlignment=NSTextAlignmentCenter;
    self.titleLabel.textColor=[UIColor blackColor];
    [self.contentView addSubview:self.titleLabel];
    
}
-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes{
    
    [super applyLayoutAttributes:layoutAttributes];
    
    self.titleLabel.frame=CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
    
}
@end
